package cn.fzkj.helloworld01;

import akka.actor.ActorRef;
import akka.actor.ActorSystem;
import akka.actor.Props;

/**
 * @ author mr
 * @ description
 * @ since 2024/12/2
 */
public class HwMain {
    public static void main(String[] args) {
        ActorSystem actorSystem = ActorSystem.create("system-actor");

        ActorRef helloActor = actorSystem.actorOf(Props.create(HelloActor.class), "hello-actor");
        helloActor.tell("hello world", ActorRef.noSender());

        System.out.println("hello actor s path is " + helloActor.path());
        actorSystem.terminate();
    }
}
